package com.zc.feignservice;

import com.zc.common.BaseResult;
import com.zc.model.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "cloud-payment")
public interface PaymentFeignService {
    @GetMapping(value = "/query/{id}")
    public BaseResult<Payment> getPaymentById(@PathVariable("id") Long id);
}
